﻿using Microsoft.EntityFrameworkCore.Query;

namespace AcmeDameng.EntityFrameworkCore
{
 
    public class FixedDmRelationalParameterBasedSqlProcessorFactory : IRelationalParameterBasedSqlProcessorFactory
    {
        protected virtual RelationalParameterBasedSqlProcessorDependencies Dependencies { get; }

        public FixedDmRelationalParameterBasedSqlProcessorFactory(RelationalParameterBasedSqlProcessorDependencies dependencies)
        {
            Dependencies = dependencies;
        }

        public RelationalParameterBasedSqlProcessor Create(RelationalParameterBasedSqlProcessorParameters parameters)
        {
            return new FixedDmParameterBasedSqlProcessor(Dependencies, parameters);
        }
    }
}
